<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="pu" uri="/WEB-INF/tld/pageutil.tld"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>


<c-rt:if test="${!empty param.productId}">
	<c-rt:set scope="request" var="product" value="${pu:get('com.yaodian100.ec.product.entity.Product', param.productId)}" />
	<c-rt:set var="paramsShelf" value="${pu:addToList('parasShelf', param.productId)}" />
	<c-rt:set var="shelfs" value="${pu:queryByHql('from Shelf where productId=?', paramsShelf, null)}" />
	<c-rt:set var="promoteHql" value="from CampaignProduct where uuid=? and productId=?" />
	<c-rt:set var="params" value="${pu:addToList('paras', param.promoteUuid)}" />
	<c-rt:set var="params" value="${pu:addToList('paras', param.productId)}" />
	<c-rt:set var="promoteProducts" value="${pu:queryByHql(promoteHql, params, null)}" />
</c-rt:if>
<c-rt:if test="${param.capture=='true'}">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="description" content="" />
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
</head>
<body></c-rt:if>
<div class="presentp">
<link rel="stylesheet" href="/css/yaodian100_ordercar_v1.css" type="text/css" media="screen" />
 <script language="javascript">
$().ready(function(){

	$("#presentCloseBtn").click(function(){	
		closeDialog('dialogQuotaFilled');
		return false;
	});
});
</script><a href="javascript:;">
	<img src="/PImg/${pu:substring(product.productId, 0, 4)}/${product.productId }/${product.productId }_m250.jpg" onError="this.src='/PImg/blank_250.gif'" alt="" width="250" height="250" /></a>
	<p class="pprice">市场价￥<span>${product.listPrice }</span> <b>加购价￥ <em>
	<%--
	<c:out value="${shelfs.shelfPrice-promoteProducts[0].discount}"/>
	 --%>
<c-rt:set value="${shelfs[0].shelfPrice - promoteProducts[0].discount}" var="price"/>
<fmt-rt:formatNumber type="number" pattern="0.00" value="${price}" />
	</em></b></p>
</div>
<div class="detail-text"><em>${shelfs[0].promoteName}</em>
<h5>${product.productName }</h5>
<p>${product.productBrief }</p>
<p class="txt-bk"><br />商品重量：
	<c-rt:if test="${product.productWeight>0}">
     <fmt-rt:formatNumber value="${(product.productWeight+0.001)/1000 }"  pattern="#,#0.00#"/>
  </c-rt:if>
  <c-rt:if test="${product.productWeight<=0}">0</c-rt:if>
  KG (<a href="/help/6_deliveryfee.html" target="_blank">重量与运费说明</a>)
</p>
</div>
<c-rt:if test="${param.capture=='true'}">
</body></html></c-rt:if>
<p align="center"><a id="presentCloseBtn" href="javascript:;" class="btn-mid">关闭</a></p>
